/* 
 * File:   Triangle.h
 * Author: brady
 *
 * Created on August 7, 2011, 3:47 PM
 */

#ifndef TRIANGLE_H
#define	TRIANGLE_H
#include <core/Vector3D.h>
#include <shapes/Shape.h>
#include <core/Vertex.h>
using namespace std;

class Triangle : public Shape{
public:
    Triangle();
    Triangle(Vertex* v1, Vertex* v2, Vertex* v3);
    virtual ~Triangle();
    bool testIntersect(IntersectionParams& ip, IntersectionResult& ir);
protected:
private:
    void buildBoundingBox();
    Vertex *v1, *v2, *v3;
};

#endif	/* TRIANGLE_H */

